package com.wl.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comment {
    private Integer id;
    private String content;
    private Integer userId;
    private String commenterImg; // 评论所属用户头像
    private String commenterUsername; // 评论所属用户的名字
    private String replyToUsername; // 如果是一级评论，则为null，如果是二级评论，则为被评论的用户的名字
    private Integer likeCount;
    private Integer postId;
    private Integer parentId;
    private LocalDateTime createTime;
    private Integer replyCount;
}
